package com.sparrow.common.excel.bean;

import java.util.ArrayList;
import java.util.List;

public class ExcelSheet {

    private String sheetName;
    private List<ExcelRow> rows;

    public void setSheetName(String sheetName) {
        this.sheetName = sheetName;
    }

    public String getSheetName() {
        return sheetName;
    }

    public void setRows(List<ExcelRow> rows) {
        this.rows = rows;
    }

    public List<ExcelRow> getRows() {
        return rows;
    }

    public void addRow(ExcelRow r) {
        if (this.rows == null) {
            this.rows = new ArrayList<>();
        }
        this.rows.add(r);
    }
}
